package com.lzy.crm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.lzy.crm.dao.PlayerInRoomInfoMapper;
import com.lzy.crm.domain.GameScoreLocker;
import com.lzy.crm.domain.PlayerInRoomInfo;
import com.lzy.crm.service.PlayerInRoomInfoService;



@Service("playerInRoomInfoService")
public class PlayerInRoomInfoServiceImpl implements PlayerInRoomInfoService{
	
	@Resource
	private PlayerInRoomInfoMapper playerInRoomInfoMapper;
	
	public List<PlayerInRoomInfo> getPlayerInRoomInfoByroomId(String roomId){
		return playerInRoomInfoMapper.getPlayerInRoomInfoByroomId(roomId);
	}

	/**
	 * 查询房间信息
	 * @param userId
	 * @return
	 */
	public GameScoreLocker getGameScoreLockerByUserId(String userId){
		return playerInRoomInfoMapper.getGameScoreLockerByUserId(userId);
	}
	
	
	
	
}
